﻿using Abp.Application.Services.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CPPProject.CPP.Dto
{
    class CPPPartBinDto: EntityDto<long>
    {
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 资产编码
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string PartNum { get; set; }
        /// <summary>
        /// 现存量
        /// </summary>
        public decimal Quantity { get; set; }
        /// <summary>
        /// 期初数量
        /// </summary>
        public decimal OrgQty { get; set; }
        /// <summary>
        /// 站点ID
        /// </summary>
        public int PlantId { get; set; }
        /// <summary>
        /// 所属公司
        /// </summary>
        public long CompanyId { get; set; }
        /// <summary>
        /// 来源公司
        /// </summary>
        public long? ForCompanyId { get; set; }
        /// <summary>
        /// 资产类型，自有own，托管escrow（在有限站点内流转），代管agent（无站点限制）；托管和代管都必须选择ForCompanyId
        /// </summary>
        [MaxLength(10)]
        public string PType { get; set; }
    }
}
